﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System.Web.Mvc;

namespace Tecnosop.Dominio
{
    [MetadataType(typeof(MEDICION_FACTURADAMetadata))]
    public partial class MEDICION_FACTURADA
    {
        internal class MEDICION_FACTURADAMetadata
        {
            [HiddenInput(DisplayValue = true)]
            [DisplayName("AAAAAAAAAAAAAAA")]
            [Required(ErrorMessage = "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA")]
            public int COD_DIFERENCIA_FACTURADA { get; set; }

            //[HiddenInput(DisplayValue = true)]
            //[DisplayName("Número convenio")]
            //[Required(ErrorMessage = "Ingrese número de convenio")]
            //public int NUMERO_CONVENIO { get; set; }

            [DisplayName("ID medición")]
            [Required(ErrorMessage = "Ingrese ID medición")]
            public int ID_MEDICION { get; set; }

            [DisplayName("Número factura")]
            [Required(ErrorMessage = "Ingrese número factura")]
            public Nullable<int> NUMERO_FACTURA { get; set; }

            [DisplayName("Razón social")]
            [Required(ErrorMessage = "Ingrese una razón social")]
            public string RAZON_SOCIAL { get; set; }

            [DisplayName("Detalle factura")]
            [Required(ErrorMessage = "Ingrese un detalle")]
            public Nullable<int> DETALLE_FACTURA_CONVENIO { get; set; }


            [DisplayName("Diferencia facturada")]
            [ReadOnly(isReadOnly: true)]
            public Nullable<int> DIFERENCIA_FACTURADA { get; set; }
        }
    }
}
